import { NetWork_Post, NetWork_Get } from './commonServer'

/**
 * 获取输液执行任务
 * @param {input data} bodydata
 * @param {回调} callback
 */
function getTodayInfuseTask(bodydata, callback) {
  let netapi = 'getTodayInfuseTask',
    reqError = {
      error: {
        code: '-1',
        msg: '获取数据失败'
      }
    }
  NetWork_Post(netapi, bodydata, callback, reqError)
}

function submitExeTask(bodydata, callback) {
  let netapi = 'submitExeTask',
    reqError = {
      error: {
        code: '-1',
        msg: '提交数据失败'
      }
    }
  NetWork_Post(netapi, bodydata, callback, reqError)
}



function getAdviseRecList(bodydata, callback) {
  let netapi = 'getAdviseRecList',
    reqError = {
      error: {
        code: '-1',
        msg: '获取数据失败'
      }
    }
  NetWork_Post(netapi, bodydata, callback, reqError)
}

export { getTodayInfuseTask, submitExeTask, getAdviseRecList }
